package com.suyang.syt.model;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "WX_QRCODE")
@SuppressWarnings("serial")
public class WeixinQRcode extends BaseEntity {
	/** 二维码类型,0表示临时的,1表示永久的 */
	private int type;
	/** 临时的二维码必须有一个32位不重复的非0整型为场景值ID */
	private long scene_id;
	/** 永久的二维码必须有一个32位的不重复的字符串为场景值ID */
	private String scene_str;
	/** 二维码创建的时间 */
	private long timestamp;
	/** 二维码中携带的数据 */
	private String qrdata;
	/** 获取的二维码ticket，凭借此ticket可以在有效时间内换取二维码 */
	private String ticket;
	/** 二维码的有效时间，以秒为单位。最大不超过1800 */
	private int expire_seconds;
	/** 二维码图片解析后的地址，开发者可根据该地址自行生成需要的二维码图片 */
	private String url;

	public WeixinQRcode() {

	}

	public WeixinQRcode(String name, int type, int status) {
		this.setName(name);
		this.setType(type);
		this.setStatus(status);
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public long getScene_id() {
		return scene_id;
	}

	public void setScene_id(long scene_id) {
		this.scene_id = scene_id;
	}

	public String getScene_str() {
		return scene_str;
	}

	public void setScene_str(String scene_str) {
		this.scene_str = scene_str;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getQrdata() {
		return qrdata;
	}

	public void setQrdata(String qrdata) {
		this.qrdata = qrdata;
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public int getExpire_seconds() {
		return expire_seconds;
	}

	public void setExpire_seconds(int expire_seconds) {
		this.expire_seconds = expire_seconds;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
